<?php
include './include/common.php';
set_time_limit(0);
$cities=$db->select("select `AreaID`,`WeatherCode` from {$table_top}weather");
foreach($cities as $v){
	$tem=$db->getone("select `Update` from {$table_top}weatherlog where `AreaID`='{$v['AreaID']}' and `Update`='{$nowdate}'");
	if(!$tem['Update']){
		!$tem['Update']&&$db->insert("insert into {$table_top}weatherlog (`AreaID`,`Update`) values ('{$v['AreaID']}','{$nowdate}')");
		GetWeatherAll($v['AreaID'],$v['WeatherCode']);
	}else {
		continue;
	}

}
echo '恭喜了你终于熬到生成ok了';
?>